/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.sql.PreparedStatement;
import java.sql.ResultSet;


/**
 *
 * @author Lcnkb24
 */
public interface TableInterface {

    public void insert(PreparedStatement pstmt) throws java.sql.SQLException;

    public Object getObject(ResultSet resultSet) throws java.sql.SQLException;

    /**
     * 
     * @return 数据库对应表的名称
     */
    public String getTableName();

    /**
     * 
     * @return 主键
     */
    public String getPrimaryKey();

    /**
     * 
     * @return 此表有几个字段
     */
    public int getTableColumnCount();

}
